<template>
  <div class="content">
    <login v-if="!userInfo.isLogin"/>
    <layout v-else/>
  </div>
</template>

<script setup>
    import layout from './layout/index.vue'
    import login from './views/login/login.vue'

    import { userStoreHook } from './store/modules/user'
    const userStore = userStoreHook();
    const userInfo = userStore.userInfo;



</script>

<style lang="scss" scoped>
  .content{
    width: 100%;
    height: $web-height;
  }
</style>
